<?php
    header("content-type:text/html;charset=utf-8");
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <h1>首页</h1>
    <div class="div"></div>
    <button class="b1">按钮1</button>
    <button class="b2">按钮2</button>
<script src="/../../Public/js/jquery-1.11.1.min.js"></script>
<script>
    var div = $('.div');
    $('.b1').click(function(){
        $.get('/d1.php',function(resp){
            div.html(resp);
        })
    });
    $('.b2').click(function(){
        $.get('/d2.php',function(resp){
            div.html(resp);
        })
    })
</script>
</body>
</html>
